import {RESULT_CODE_ERROR_COMMON, RESULT_CODE_ERROR_NOT_AUTH} from "~~/server/resources/constants/constant";

/**
 * title
 */
export const TITLE_CLIENT: string = "text.page.client";
export const TITLE_USER: string = "text.page.user";
export const TITLE_INDEX: string = "text.page.index";
export const TITLE_MAIN: string = "text.page.main";
export const TITLE_RESOURCE: string = "text.page.resource";
export const TITLE_ROLE: string = "text.page.role";
export const TITLE_ORGANIZATION: string = "text.page.organization";
export const TITLE_ROLE_CATEGORY: string = "text.page.roleCategory";
export const TITLE_RESOURCE_CATEGORY: string = "text.page.resourceCategory";
export const TITLE_FLOW: string = "text.page.flow";
/**
 * layout
 */
export const LAYOUT_DEFAULT: "default" = "default";
export const LAYOUT_MAIN: "main" = "main";
export const LAYOUT_ERROR: string = "error";

/**
 * route
 */
export const ROUTE_CLIENTS_LIST = "/clients/list";

export const ROUTE_USERS_LIST = "/users/user-list";

export const ROUTE_MAIN = "/main";
export const ROUTE_INDEX = "/";

export const ROUTE_ORGANIZATIONS_LIST = "/organizations/list";
export const ROUTE_RESOURCES_CATEGORY_LIST = "/resources/category-list";
export const ROUTE_RESOURCES_LIST = "/resources/resource-list";

export const ROUTE_ROLES_LIST = "/roles/role-list";
export const ROUTE_ROLES_CATEGORY_LIST = "/roles/category-list";

export const ROUTE_FLOWS_LIST = "/flows/list";

/**
 * table
 */
export const TABLE_CLIENT: string = "client";
export const TABLE_ROLE: string = "role";
export const TABLE_ROLE_CATEGORY: string = "roleCategory";
export const TABLE_USER: string = "user";
export const TABLE_RESOURCE_CATEGORY: string = "resourceCategory";
export const TABLE_RESOURCE: string = "resource";
/**
 * 可以匿名访问的路径开头
 */
export const ANONYMOUS: string = '/anonymous';

export const CLIENT_ERROR_CODE_LIST: Array<string> = [RESULT_CODE_ERROR_COMMON, RESULT_CODE_ERROR_NOT_AUTH]

export const ENABLE_VALUE: string = "0";

export const RESPONSE_VALUE: string = "00000";

export const SPLITTING_SYMBOL: string = "|";